import socket

address = ('123.207.46.210', 12345)
# address = ('127.0.0.1', 8042)
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

while True:
    msg = raw_input()
    if not msg:
        break
    s.sendto(msg, address)
    print msg

s.close()
